<template>
  <div>
    <items-head title="个人中心" />
    <div class="main"
         style="background-image: url('https://img02.hua.com/m/member/center/backgroundv3.png');">
      <div class="userinformation-login">
        <div class="userinformation">
          <div class="userinfo-pic">
            <img src="../../assets/img/loading.gif"
                 alt="">
          </div>
          <div class="userinfo-content">
            <div class="username">1212112312</div>
            <div class="huiyuan">
              <van-icon name="diamond"></van-icon> 注册会员
            </div>
          </div>
        </div>
        <div class="panel">
          <div class="panelhead">
            <div class="dingdan">我的订单</div>
            <div class="alldingdan">全部订单</div>
          </div>
          <div class="panelbody">
            <div class="orderItem">
              <van-icon name="card"></van-icon>
              <p>待付款</p>
            </div>
            <div class="orderItem">
              <van-icon name="hot"></van-icon>
              <p>热款爆品</p>
            </div>
            <div class="orderItem">
              <van-icon name="comment"></van-icon>
              <p>评价有礼</p>
            </div>
          </div>
        </div>
        <div class="panel">
          <div class="linkbox">
            <div class="link-item">
              <van-icon name="gift-card-o"></van-icon>
              <p>礼物卡</p>
            </div>
            <div class="link-item">
              <van-icon name="vip-card-o"></van-icon>
              <p>权益卡</p>
            </div>
            <div class="link-item">
              <van-icon name="balance-o"></van-icon>
              <p>余额</p>
            </div>
            <div class="link-item">
              <van-icon name="gem-o"></van-icon>
              <p>会员积分</p>
            </div>
            <div class="link-item">
              <van-icon name="location-o"></van-icon>
              <p>收货地址</p>
            </div>
            <div class="link-item">
              <van-icon name="todo-list-o"></van-icon>
              <p>纪念日提醒</p>
            </div>
            <div class="link-item">
              <van-icon name="star-o"></van-icon>
              <p>我的收藏</p>
            </div>
            <div class="link-item">
              <van-icon name="underway-o"></van-icon>
              <p>浏览记录</p>
            </div>
          </div>
        </div>
        <div class="panel">
          <div class="linkbox lastlink">
            <div class="link-item">
              <van-icon name="service-o"></van-icon>
              <p>联系客服</p>
            </div>
            <div class="link-item">
              <van-icon name="question-o"></van-icon>
              <p>帮助中心</p>
            </div>
            <div class="link-item">
              <van-icon name="info-o"></van-icon>
              <p>关于花礼</p>
            </div>
            <div class="link-item">
              <van-icon name="setting-o"></van-icon>
              <p>设置</p>
            </div>
          </div>
        </div>
        <div class="panel">
          <div class="panel-kefu">
            <img src=""
                 alt="">
            <span>专属助理-小懒先生</span>
          </div>
          <div class="paner-content">
            <p>Hi~我是您的专属助理小懒先生，帮你催单，有需求时，1对1帮你走绿色通道。</p>
            <span>加我微信</span>
          </div>
        </div>
      </div>
    </div>
    <home-tabbar />
  </div>
</template>

<script>
import ItemsHead from 'components/ItemsHead'
import HomeTabbar from 'components/HomeTabbar'
export default {
  name: 'User',
  data () {
    return {
      key: 0
    }
  },
  components: {
    ItemsHead,
    HomeTabbar
  }
}
</script>

<style lang="scss" scoped>
.main {
  padding: 46px 0 90px;
  width: 100%;
  background-repeat: no-repeat;
  background-size: 100% 185px;
  background-position: top center;
  .userinformation {
    padding: 30px 0 27px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    .userinfo-pic {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      overflow: hidden;
      border: 1px solid #fff;
      img {
        width: 60px;
        height: 60px;
      }
    }
    .userinfo-content {
      margin-left: 20px;
      display: flex;
      flex-direction: column;
      color: #fff;
      .username {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 6px;
      }
      .huiyuan {
        font-size: 12px;
        width: 70px;
        height: 20px;
        border-radius: 12px;
        background-color: #ff734c;
        text-align: center;
        line-height: 20px;
        display: flex;
        align-items: center;
        text-indent: 2px;
        .van-icon {
          color: rgb(224, 220, 220);
        }
      }
    }
  }
  .panel {
    background: #fff;
    position: relative;
    width: 94%;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 1px 1px 5px rgb(230, 228, 228);
    .panelhead {
      display: flex;
      justify-content: space-between;
      padding: 10px 18px;
      position: relative;
      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 90%;
        border-bottom: 1px solid #e9ecf0;
      }
    }
    .panelbody {
      display: flex;
      justify-content: space-around;
      padding: 15px 18px;
      .orderItem {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 13px;
        .van-icon {
          font-size: 30px;
          color: #ff734c;
        }
      }
    }
    .linkbox {
      display: flex;
      flex-wrap: wrap;
      margin: 8px 0;
      &::after {
        content: "";
        position: absolute;
        top: 110px;
        left: 20px;
        width: 90%;
        border-bottom: 1px solid #e9ecf0;
      }
      .link-item {
        width: 25%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 25px 0;
        font-size: 12px;
        .van-icon {
          font-size: 22px;
          padding-bottom: 12px;
        }
      }
    }
    .lastlink {
      &::after {
        content: "";
        border: transparent;
      }
    }
    .panel-kefu {
      display: flex;
      align-items: center;
      font-size: 13px;
      padding: 10px;
      img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        overflow: hidden;
        background-color: #ff734c;
        margin-right: 4px;
      }
    }
    .paner-content {
      padding: 0 10px 20px;
      font-size: 13px;
      display: flex;
      p {
        width: 260px;
        background-color: rgba(0, 0, 0, 0.07);
        height: 50px;
        border-radius: 6px;
        padding: 8px;
      }
      span {
        width: 80px;
        height: 30px;
        border-radius: 20px;
        background-color: #ff734c;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 10px 0 0 8px;
      }
    }
  }
}
</style>
